﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="DelegationUI.aspx.cs" Inherits="Staionery_Inventory.Presentation.Admin.DelegationUI__Reload_" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        <%-- BigTitle --%>
        <div class="form-group">
            <div class="col-sm-1"></div>
            <label class="col-sm-7" style="font-size:xx-large">Role Delegation</label>
        </div>

        <%-- Delegation Section --%><%-- Seen by employee, clerk, supervisor, manager --%>
        <div id="DelegateInfo">
            <%-- DelegatedTitle --%>
            <div class="form-group">
                <div class="col-sm-2"></div>
                <label id="lblDelegatedTitle" class="col-sm-6" style="font-size:large" runat="server">Delegation Section</label>
            </div>

            <%-- DelegatedMessage --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <label id="lblDelegatedMessage" class="col-sm-5" style="font-size:larger" runat="server"></label>
            </div>

            <%-- DelegatedWork --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegatedWork" class="control-label col-sm-3" runat="server">Delegate Work: </label>
                <%-- lbl --%>
                <asp:Label ID="lblDelegatedWork" runat="server" Text="" CssClass="col-sm-3 control-label" ></asp:Label>
            </div>

            <%-- DelegatedBy --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegatedBy" class="control-label col-sm-3" runat="server">Delegate By: </label>
                <%-- lbl --%>
                <asp:Label ID="lblDelegatedBy" runat="server" Text="" CssClass="col-sm-3 control-label" ></asp:Label>
            </div>

            <%-- DelegatedFrom --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegatedFrom" class="control-label col-sm-3" runat="server">Delegate From: </label>
                <%-- lbl --%>
                <asp:Label ID="lblDeleagtedFrom" runat="server" Text="" CssClass="col-sm-3 control-label" ></asp:Label>
            </div>

            <%-- DelegatedTill --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegatedTill" class="control-label col-sm-3" runat="server">Delegate Till: </label>
                <%-- lbl --%>
                <asp:Label ID="lblDelegatedTill" runat="server" Text="" CssClass="col-sm-3 control-label" ></asp:Label>
            </div>

        </div>
        <hr />

        <%-- Delegator Section --%><%-- Seen by head, supervisor, manager --%>
        <div id="DelegatorInfo">
            <%-- DelegateTitle --%>
            <div class="form-group">
                <div class="col-sm-2"></div>
                <label id="lblDelegateTitle" class="col-sm-6" style="font-size:large" runat="server">Delegator Section</label>
            </div>

            <%-- DelegateWork --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegateWork" class="control-label col-sm-3" runat="server">Delegate Work: </label>
                <%-- lbl --%>
                <asp:Label ID="lblDelegateWork" runat="server" Text="" CssClass="col-sm-2 control-label" ></asp:Label>
            </div>

            <%-- DelegateEmp --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegateEmp" class="control-label col-sm-3" runat="server">Employee Name: </label>
                <%-- txt --%>
                <div class="col-sm-3">
                    <asp:TextBox ID="txtDelegateEmp" runat="server" CssClass="form-control" required></asp:TextBox>
                </div>
            </div>

            <%-- DelegateFrom --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegateFrom" class="control-label col-sm-3" runat="server">Delegate From: </label>
                <%-- txt --%><%-- btn --%><%-- cl --%>
                <div class="col-sm-3">
                    <asp:TextBox ID="txtDelegateFrom" runat="server" CssClass="form-control" required></asp:TextBox>
                </div>
                <div class="col-sm-1">
                    <asp:ImageButton ID="btnDelegateFrom" runat="server" 
                        onclick="btnDelegateFrom_Click" Height="25px" ImageUrl="~/image/calendar.png" 
                        Width="30px" CausesValidation="false"/>    
                </div>
                <div class="col-sm-3">
                    <asp:Calendar ID="clDelegateFrom" runat="server" Visible="False" 
                        onselectionchanged="clDelegateFrom_SelectionChanged"></asp:Calendar>
                </div>
            </div>

            <%-- DelegateTill --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <%-- lbl --%>
                <label id="lblForDelegateTill" class="control-label col-sm-3" runat="server">Delegate Till: </label>
                <%-- txt --%><%-- btn --%><%-- cl --%>
                <div class="col-sm-3">
                    <asp:TextBox ID="txtDelegateTill" runat="server" CssClass="col-sm-2 form-control" required></asp:TextBox>
                </div>
                <div class="col-sm-1">
                    <asp:ImageButton ID="btnDelegateTill" runat="server" 
                        onclick="btnDelegateTill_Click" Height="25px" ImageUrl="~/image/calendar.png" 
                        Width="30px" CausesValidation="false"/>    
                </div>
                <div class="col-sm-3">
                    <asp:Calendar ID="clDelegateTill" runat="server" Visible="False" 
                        onselectionchanged="clDelegateTill_SelectionChanged"></asp:Calendar>
                </div>
            </div>

            <%-- button group --%>
            <div class="form-group">
                <div class="col-sm-4"></div>
                <div class="col-sm-6">
                    <asp:Button class="btn btn-primary" ID="btnSubmit" runat="server" Text="Submit" 
                        style="width:90px" onclick="btnSubmit_Click" />
                </div>
            </div>

            <%-- DelegateMessage --%>
            <div class="form-group">
                <div class="col-sm-1"></div>
                <asp:Label ID="lblMessage" runat="server" Text="" class="col-sm-8"></asp:Label>
            </div>
        </div>

        <%-- HiddenFieldCheck --%>
        <label ID="lblEmpRole" style="visibility:hidden" runat="server"></label>
        <label ID="lblHeadType" style="visibility:hidden" runat="server"></label>

</asp:Content>
